<?php
class Get_request
{
    public function isPost(){
        $flag = true;
        if(!isset($_POST) || $_POST == null) {
            $flag = false;
        }
        return $flag;
    }
    public function getParams($name = ""){
        if($name == ""){
            return false;
        }
        $data = "";
        if(isset($_REQUEST[$name]) && $_REQUEST[$name] != null ){
            $data = $_REQUEST[$name];
        }
        return $data; 
    }
}